const {apiPath} = require('../../config');
const {get,post,success,failure} = require('../../common/request');

const start = {
    get_app_run: (req,res) => {
        let url = `${apiPath}/app/get-app-run`;
        let options = {
            data: {},
            success: result => success(result,res),
            failure: error => failure(error, res)
        };
        get(url, options);
    },
    update_app_run: (req,res) => {
        let url = `${apiPath}/cms/update-app-run`;
        console.log(req.body);
        let options = {
            data: req.body,
            success: result => success(result,res),
            failure: error => failure(error, res)
        };
        post(url, options);
    }
};

module.exports = start;
